﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlXacMinhHDBanHang.ascx.cs" Inherits="UserControl_ControlXacMinhHDBanHang" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>

<script type="text/javascript">

    function pageLoad() {


        $(".direct_margin_topbottom").click(function () {

            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
                css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#f00',
                    opacity: .5,
                    color: '#fff'
                }
            });

        });
        $("#<%= BtnSave.ClientID %>").click(function () {
            $.blockUI({
                message: '<h1>Xin vui lòng chờ xử lý</h1>',
            css: {
                border: 'none',
                padding: '15px',
                backgroundColor: '#000',
                '-webkit-border-radius': '10px',
                '-moz-border-radius': '10px',
                opacity: .5,
                color: '#fff'
            }
            });
        });


        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }
    }
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Danh sách báo cáo sale file excel đã được import trong tháng
                </div>
                 <hr />
                <!-- Button chuc nang-->
                <div class="direct_container_main">
                    
                    <table>
                        <tr>
                            <td>Nhà phân phối</td>
                            <td>
                                <asp:DropDownList ID="drlDistributor" runat="server">
                                    <asp:ListItem Text="Tất cả" Value="ALL" Selected="True"></asp:ListItem>
                                    <asp:ListItem Text="NPP DKSH" Value="FM_00000003"></asp:ListItem>
                                    <asp:ListItem Text="NPP NMD" Value="FM_00000002"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                              
                                 <asp:DropDownList ID="DropMonthLy" runat="server">
                                </asp:DropDownList>                          
                            </td>
                            <td>
                                   <asp:Button ID="BtnSave" runat="server" CssClass="direct_bt_search" Text="Lấy thông tin" 
                                        onclick="BtnSave_Click" />
                                    
                            </td>
                        </tr>
                       
                    </table>       
                    
                   
                </div>
                <!-- End Button chuc nang-->
                <!-- Content main-->
                <div class="direct_container_main">
                    <div class="direct_container_form_right">
                        <table border="0" width="100%">
                        <tr>
                            <asp:GridView ID="grvIntxd" runat="server" AutoGenerateColumns="False" PageSize="10"  
                                        DataKeyNames="FileNameDestination" EnableModelValidation="True" AllowPaging="True" 
                                        onpageindexchanging="grvIntxd_PageIndexChanging1" onrowcommand="grvIntxd_RowCommand"
                                        >
                                        <Columns>
                                            <asp:TemplateField HeaderText="Stt">
                                                <HeaderTemplate>
                                                    STT
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <%# Container.DataItemIndex + 1 %>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="50px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="50px" />
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Nhà phân phối">
                                                <HeaderTemplate>
                                                    Nhà phân phối
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                   <%# Eval("Sitename")%>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                            </asp:TemplateField>
                                           
                                            <asp:TemplateField HeaderText="Tên file upload">
                                                <HeaderTemplate>
                                                    Tên file upload
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                   <asp:Label ID="lblFileNameOrginaly" runat="server" Text='<%# Eval("FileNameOrginaly")%>'></asp:Label>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                            </asp:TemplateField>
                                            
                                            <asp:TemplateField HeaderText="Tên file trên hệ thống">
                                                <HeaderTemplate>
                                                    Tên file trên hệ thống
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                  <asp:Label ID="lblFileNameDestination" runat="server" Text='<%# Eval("FileNameDestination")%>'></asp:Label>
                                                   
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                            </asp:TemplateField>
                                            
                                            <asp:TemplateField HeaderText="User import">
                                                <HeaderTemplate>
                                                     User import
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <%# Eval("UserImport")%>
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                            </asp:TemplateField>
                                            
                                            <asp:TemplateField HeaderText="Thời gian Import">
                                                <HeaderTemplate>
                                                     Thời gian Import
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                  <%#String.Format("{0:dd/MM/yyyy HH:mm:ss}", Eval("ImportDate"))%> 
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Tháng Import">
                                                <HeaderTemplate>
                                                     Tháng Import
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                  <asp:Label ID="lblMonthLy" runat="server" Text='<%# Eval("Month")%>'></asp:Label>
                                                   
                                                </ItemTemplate>
                                                <HeaderStyle HorizontalAlign="Left" Width="150px" />
                                                <ItemStyle Height="40px" HorizontalAlign="Left" Width="150px" />
                                            </asp:TemplateField>
                                             <asp:TemplateField HeaderText="Xóa"><HeaderTemplate>
                                                                   Xóa
                                                                
</HeaderTemplate>
                                                                 <ItemTemplate>
                                                                    <asp:ImageButton ID="imgBtnChon" runat="server" CausesValidation="False" 
                                                                    CommandName="chon" Height="20px" ImageUrl="~/Images/delete.png" />
                                                                </ItemTemplate>
                                                                <ControlStyle BackColor="White" />
                                                                <FooterStyle BackColor="White" />
                                                               <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                                <ItemStyle HorizontalAlign="Center" BackColor="White" />
                                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                        </tr>
                      </table>
                    </div>
                </div>
                <dxpc:ASPxPopupControl ID="MessageBox" PopupHorizontalAlign="WindowCenter"  PopupVerticalAlign="WindowCenter" Font-Bold="true" HeaderText="DRM-S" runat="server" Height="91px" 
        Width="601px">
        <ContentCollection>
<dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True"></dxpc:PopupControlContentControl>
</ContentCollection>
    </dxpc:ASPxPopupControl>
    </ContentTemplate>
</asp:UpdatePanel>


